//
//  WebViewViewController.m
//  WebView
//

#import "WebViewViewController.h"

@implementation WebViewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
	
	CGRect webView = CGRectMake(10, 10, 300, 400);
	UIWebView *myWebView = [[UIWebView alloc] initWithFrame:webRect];
	myWebView.scalesPageToFit = YES;
	
	NSURL *url = [NSURL URLWithString:@"http://www.google.com"];
	NSURLRequest *request = [NSURLRequest requestWithURL:url];
	[myWebView loadRequest:request];
	[self.view addSubview:myWebView];
}

- (void)dealloc {
    [super dealloc];
}

@end
